import updateButtonStatus from "./updateButtonStatus";

export default function clearMainTableData() {
    this.setState({
        rosterData: [],
        pageInfo: {
            pageSize: this.state.pageInfo.pageSize,
            pageIndex: 1,
            total: 0,
            totalPage: 1
        }
    }, () => {
        updateButtonStatus.call(this);
    });
}
